package myPack1;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class TestCase01 {
	
	WebDriver driver;
	String url;
	
	@Before
	public void launchBrowser() throws Exception{
		driver = new FirefoxDriver();
		
		driver.manage().window().maximize();
		
		url = "http://www.gmail.com";
		
	}
	
	@Test
	public void atTest() throws Exception{
		//Test Case logic
		
		driver.get(url);
		
		driver.findElement(By.id("Email")).sendKeys("User name");
		
		driver.findElement(By.name("Passwd")).sendKeys("abc123");
		
		driver.findElement(By.id("signIn")).click();
	}
	
	@After
	public void atAfter() throws Exception{
		
	}

}
